home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Applications / Calculators / Units / units documentation next >
Encoding:
Text File  |  1989-04-29  |  1.8 KB  |  60 lines  |  [TEXT/ttxt]

  1. UNITS 1.0
  2.  
  3. This program allows easy conversion from one unit of measure to another.
  4. It is easily expandable up to 1000 different units of measure. Many
  5. units (and their abreviations) are already entered into the UNITS.TXT file.
  6. There are three files that make up the utility.They are UNITS (the program),
  7. UNITS.TXT (the text data) and UNITS.DAT (the compiled data). They must all
  8. reside in the same folder.
  9.  
  10. Here is an example of how to use the program:
  11.  
  12. (reading pre-compiled units table from "UNITS.DAT")
  13. 678 units
  14. You have: floz
  15. You want: liters
  16. * 0.295729
  17. / 3.38147
  18. You have: 
  19.  
  20. When the program is run it will read in all the units it understands
  21. from a data file. It will then prompt you for the unit to be converted and 
  22. also for the unit you would like to have a conversion to.
  23. The output in the above example is really:
  24.  
  25. 1 floz * 0.295729 = 0.295729 liters
  26.  
  27. or
  28.  
  29. 1 floz / 3.38147 = 0.295729 liters
  30.  
  31. Normally the data is read from the UNITS.DAT file. If you do not have a
  32. UNITS.DAT file the program will look for the UNITS.TXT file. This file
  33. contains a text representation of the units to convert. If the UNITS.TXT
  34. file is found, the program will compile it into a new UNITS.DAT file.
  35.  
  36. Adding more units to the program:
  37.  
  38. To add more units to the program delete the UNITS.DAT file and enter the
  39. new data into the UNITS.TXT file. Run UNITS and the program will build
  40. the new UNITS.DAT file.  An example of items that could be added are
  41. world money value conversions. An example:
  42.  
  43. dollar  dollar
  44. $    dollar
  45. ยข    0.01 dollar
  46. cent     0.01 dollar
  47.  
  48. could be added to UNITS.TXT. Now the program will know how to convert
  49. from dollars to cents using both the symbol and the name. This could just as
  50. easily be done with other currency.
  51.  
  52. This program was ported by:
  53.  
  54. Charles E. Bess
  55. 587 North 480 West
  56. Kokomo, IN. 46901
  57.  
  58. using the Lightspeed C compiler.
  59.  
  60.